package com.binhai.springboot.role.bean;

import java.io.Serializable;
import java.sql.Timestamp;

public class RoleBean implements Serializable {
    private Integer id;

    /**
     * 名称
     */
    private String name;
    private String bonus;

    public String getBonus() {
        return bonus;
    }

    public void setBonus(String bonus) {
        this.bonus = bonus;
    }
    private Timestamp time;

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }
    /**
     * 备注
     */
    private String beizhu;

    private static final long serialVersionUID = 1L;

    //扩展字段
    private int[] menuids;

    public int[] getMenuids() {
        return menuids;
    }

    public void setMenuids(int[] menuids) {
        this.menuids = menuids;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu == null ? null : beizhu.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", beizhu=").append(beizhu);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}